gb=g++
PARSER=parser
DBG=debug
HTTP=http_server

.PHONY:all
all:$(PARSER) $(DBG) $(HTTP)

$(PARSER):parser.cc
	$(gb) -o $@ $^ -L/usr/lib64/ -lboost_system -lboost_filesystem -std=c++11 
$(DBG):debug.cc
	$(gb) -o $@ $^ -ljsoncpp -std=c++11;
$(HTTP):http_server.cc
	$(gb) -o $@ $^ -ljsoncpp -lpthread -std=c++11
.PHONY:clean
clean:
	rm -f $(PARSER) $(DBG) $(HTTP)